using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using DevExpress.Web.ASPxScheduler.Internal;
using DevExpress.Web.ASPxScheduler;

public partial class Touchmax_Schedule : Page {
    protected void Page_Load(object sender, EventArgs e) {

        DevExpress.Web.ASPxClasses.ASPxWebControl.RegisterBaseScript(Page);
        DataHelper.SetupDefaultMappings(ASPxScheduler1);
        DataHelper.ProvideRowInsertion(ASPxScheduler1, schedulerDataSource.AppointmentDataSource);
        schedulerDataSource.AttachTo(ASPxScheduler1);

        ApplyDateNavigatorProperties();
    }

    void ApplyDateNavigatorProperties()
    {
        DateNavigatorProperties props = ASPxDateNavigator1.Properties;
        props.BoldAppointmentDates = true;
        props.ShowTodayButton = true;
        props.ShowWeekNumbers = true;

        ASPxScheduler1.ApplyChanges(ASPxSchedulerChangeAction.NotifyVisibleIntervalsChanged);
    }

    protected void OnSchedulerBeforeExecuteCallbackCommand(object sender, DevExpress.Web.ASPxScheduler.SchedulerCallbackCommandEventArgs e)
    {
        if (e.CommandId == "EnableToolTipCallback")
        {
          //  e.Command = new EnableToolTipCallback(ASPxScheduler1);
        }
    }
}

